//===================================================================
// 西交投.NET产品框架 版权所有
//===================================================================
using System.ComponentModel.DataAnnotations;

namespace XCI.Sys.Filter
{
    /// <summary>
    /// 系统字典过滤条件
    /// </summary>
    public class SysDicFilter
    {
        /// <summary>
        /// 默认过滤对象
        /// </summary>
        public static SysDicFilter Default { get; } = new SysDicFilter { };

        /// <summary>
        /// 关键字
        /// </summary>
        [Display(Name = "关键字")]
        public string Key { get; set; }

        /// <summary>
        /// 字典编码
        /// </summary>
        [Display(Name = "字典编码")]
        public string Code { get; set; }

        /// <summary>
        /// 状态 [启用_1,禁用_0]
        /// </summary>
        [Display(Name = "状态")]
        public bool? Status { get; set; }
    }

    /// <summary>
    /// 系统字典类型过滤条件
    /// </summary>
    public class SysDicCategoryFilter
    {
        /// <summary>
        /// 默认过滤对象
        /// </summary>
        public static SysDicCategoryFilter Default { get; } = new SysDicCategoryFilter { };

        /// <summary>
        /// 关键字
        /// </summary>
        [Display(Name = "关键字")]
        public string Key { get; set; }
    }
}
